package com.zhihuishu.remote;

/**
 * 远程异常，只有发生系统异常(不可处理异常)时才抛出此异常
 * @author	zhanglikun
 * @date	2015年10月14日 下午5:15:32
 */
public class RemoteException extends Exception {

	private static final long serialVersionUID = 1L;

	private Exception exception ;
	private String errorCode ;
	private String message ;
	
	public RemoteException(Exception exception) {
		super(exception) ;
		this.exception = exception ;
	}
	
	public Exception getException() {
		return exception ;
	}

	public String getMessage() {
		return message;
	}

	public RemoteException setMessage(String message) {
		this.message = message;
		return this ;
	}

	public String getErrorCode() {
		return errorCode;
	}

	public RemoteException setErrorCode(String errorCode) {
		this.errorCode = errorCode;
		return this ;
	}
	
}
